package OOP.day10.homework.AnimalDemo05;

public class Fish extends Animal implements Swim{
    //构造器
    public Fish() {
    }

    public Fish(String name, int age, String color) {
        super(name, age, color);
    }

    //行为
    @Override
    public void swim() {
        System.out.println("鱼会游泳");
    }

    @Override
    public void eat() {
        System.out.println("鱼吃虾米");
    }
}
